<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
	</head>
	<body bgcolor="#ccddee" link="#000066" vlink="#0066FF" alink="#99FF00">
			<div>
				<table>
					<tr>
						<td>
							<s:fielderror cssStyle="color:red" />
							<s:actionerror cssStyle="color:blue"/>
						</td>
					</tr>
				</table>
			</div>
			<span style="align:left">(带<font color="red">*</font>项为必填项）</span>
			<s:form method="post" action="doCreateDept" validate="true" theme="simple">
				<table width="100%" border=1 align="center" cellpadding="0"
					cellspacing="0" bgcolor="#ccddee">
					<tr>
						<td width="15%" align="right">
							上级部门<font color="red">*</font>
						</td>
						<td width="30%" align="left">
							<s:select name="supdept" list="deptlist" 
									listKey="deptcode" 
									listValue="deptcaption"
									theme="simple"></s:select>
						</td>
						<td align="left">
						</td>
					</tr>
					<tr>
						<td width="15%" align="right">
							部门名称<font color="red">*</font>
						</td>
						<td width="30%" align="left">
							<s:textfield name="department.deptcaption" theme="simple" required="true"></s:textfield>
						</td>
						<td align="left">
						</td>
					</tr>
					<tr>
						<td width="15%" align="right">
							联系人<font color="red">*</font>
						</td>
						<td width="30%" align="left">
							<s:textfield name="department.deptlinkname" theme="simple" required="true"></s:textfield>
						</td>
						<td align="left">
						</td>
					</tr>
					<tr>
						<td width="15%" align="right">
							联系电话
						</td>
						<td width="30%" align="left">
							<s:textfield name="department.deptphone" theme="simple" required="true"></s:textfield>
						</td>
						<td align="left">
						</td>
					</tr>
					<tr>
						<td width="15%" align="right">
							联系地址
						</td>
						<td width="30%" align="left">
							<s:textfield name="department.deptadress" theme="simple" required="true"></s:textfield>
						</td>
						<td align="left">
						</td>
					</tr>
				</table>
				<br />
				<br />
				<table>
					<tr>
						<td>
							<s:submit value=" 增 加 " theme="simple" />
						</td>
					</tr>
				</table>
			</s:form>
	</body>
</html>